package com.guaoran.source.spring.framework.demo.service.impl;


import com.guaoran.source.spring.framework.annotation.Autowried;
import com.guaoran.source.spring.framework.annotation.Service;
import com.guaoran.source.spring.framework.demo.service.DemoService;
import com.guaoran.source.spring.framework.demo.service.MyService;

/**
 * 该service 再次依赖service,
 */
@Service
public class MyServiceImpl implements MyService {

	@Autowried
	private DemoService demoService;
	@Override
	public String get(String name) {
		String res = demoService.get(name);
		System.out.println("MyService...");
		return "MyService name is " + name+":"+res;
	}

}
